<?php
/**
 * Created by PhpStorm.
 * User: 魏爷
 * Date: 2016/5/9
 * Time: 20:40
 */

namespace Home\Model;



class UserTypeModel extends  BaseModel
{
    // 数据表名（不包含表前缀）
    protected $tableName = 'usertype';

    /**
     * 查找所有用户类型
     * @param Integer $u_type_status 状态
     * @return Boolean
     **/
    public function getUserType(){
        return $this->where("u_type_status=1")->order("u_type_id DESC")->select();
    }
}